package math2;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;

public class MapTest {

	@Test
	public void test1() {
		Map<Integer, Double> m = new HashMap<Integer, Double>();

		m.put(1, 2.0);

		Double d = m.get(0);
		System.out.println(d);

		if (d == null) {
			d = 1.0;
		}

		System.out.println(d);
		System.out.println(m.get(0));
	}
}
